package com.example.model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

// 先使用@ApiModel来标注类
@ApiModel(value = "用户登录表单对象", description = "用户登录表单对象")
@Data //getter,setter,swagger也需要这个
public class LoginForm {

    // 使用ApiModelProperty来标注字段属性。
    @ApiModelProperty(value = "用户名", required = true, example = "root")
    private String username;

    @ApiModelProperty(value = "密码", required = true, example = "123456")
    private String password;
}

